import request from '@/utils/request'

// 查询API调用记录列表
export function listInterfaceCallLogs(query) {
  return request({
    url: '/interfaces/interfaceCallLogs/list',
    method: 'get',
    params: query
  })
}

// 查询API调用记录详细
export function getInterfaceCallLogs(id) {
  return request({
    url: '/interfaces/interfaceCallLogs/' + id,
    method: 'get'
  })
}

// 新增API调用记录
export function addInterfaceCallLogs(data) {
  return request({
    url: '/interfaces/interfaceCallLogs',
    method: 'post',
    data: data
  })
}

// 修改API调用记录
export function updateInterfaceCallLogs(data) {
  return request({
    url: '/interfaces/interfaceCallLogs',
    method: 'put',
    data: data
  })
}

// 删除API调用记录
export function delInterfaceCallLogs(id) {
  return request({
    url: '/interfaces/interfaceCallLogs/' + id,
    method: 'delete'
  })
}
